const odooModelName = 'hr.expense.sheet'

const values_default = {}

const domain_default = {}

const fields_default = {}

const filterItems = [
  'name___like',
  'accounting_date' //, 'employee_id'
]
const columns = [
  'expense_line_ids__count',
  'state__name',
  // 'can_reset',
  // 'payment_mode',
  'accounting_date',
  'employee_id__name',
  'total_amount',
  'name',
  'user_id__name',
  'department_id__name',
  'company_id__name'
]

const table_expand = {
  field: 'expense_line_ids__objects',
  type: 'table',
  columns: ['date', 'name', 'product_id__name', 'unit_amount']
}

const formItems = ['accounting_date', 'employee_id', 'name', 'user_id']

// const child_configs = {
//   expense_line_ids: {
//     columns: ['name', 'date', 'product_id__name', 'unit_amount'],
//     formItems: ['name', 'date', 'product_id', 'unit_amount']
//   }
// }

const Model = {
  name: odooModelName,

  configs: {
    values_default,
    domain_default,
    fields_default,
    columns,
    table_expand,
    filterItems,
    formItems,
    handle: {
      edit: { hidden: true }
    }
  }
}
export default Model
